<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="common-header">
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
    <meta name="description" content="gym-management-system"/>
    <title>健身房管理系统-管理员</title>
    <link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet"/>
    <link href="/static/css/styles.css" th:href="@{/css/styles.css}" rel="stylesheet"/>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/all.min.js"
            crossorigin="anonymous"></script>
    <style>
        body {
            background-color: #000 !important;
            color: #fff !important;
        }

        .sb-sidenav {
            background-color: #000 !important;
            color: #fff !important;
        }

        .sb-sidenav .nav-link,
        .sb-sidenav .sb-sidenav-menu-heading,
        .sb-sidenav-footer {
            color: #fff !important;
        }

        .sb-sidenav .nav-link:hover {
            color: #efbe02 !important;
        }

        .sb-sidenav .sb-nav-link-icon {
            color: #efbe02 !important;
        }

        .dashboard-card {
            background-color: #efbe02;
            color: white;
            border-radius: 8px;
            padding: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
            margin-bottom: 20px;
        }

        .dashboard-card:hover {
            background-color: #f8d34d;
            color: black !important;
        }

        .dashboard-card:hover h5,
        .dashboard-card:hover .card-text {
            color: black !important;
        }

        .card-text {
            font-size: 24px;
            font-weight: bold;
        }

        .card-title {
            font-size: 14px;
            margin-bottom: 10px;
        }
    </style>
</head>
<body class="bg-black">

<!--导航栏-->
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark" th:fragment="common-navbar">
    <!-- Navbar Brand-->
    <a class="navbar-brand ps-3" style="color:#efbe02 ">L&Z健身房-管理系统</a>
    <!-- Sidebar Toggle-->
    <button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i
            class="fas fa-bars"></i></button>
    <!-- Navbar Search-->
    <form class="d-none d-md-inline-block form-inline ms-auto me-0 me-md-3 my-2 my-md-0">
        <div class="input-group">
            <input class="form-control" type="text" placeholder="搜索" aria-label="搜索"
                   aria-describedby="btnNavbarSearch"/>
            <button class="btn btn-primary" id="btnNavbarSearch" type="button"><i class="fas fa-search"></i></button>
        </div>
    </form>
    <!-- Navbar-->
    <ul class="navbar-nav ms-auto ms-md-0 me-3 me-lg-4">
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown"
               aria-expanded="false"><i class="fas fa-user fa-fw"></i></a>
            <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
                <li><a class="dropdown-item" th:href="@{/}"><i class="fas fa-sign-out-alt"></i>&nbsp;退出登录</a></li>
            </ul>
        </li>
    </ul>
</nav>

<!--侧边栏-->
<div id="layoutSidenav_nav" th:fragment="common-sidenav">
    <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion">
        <div class="sb-sidenav-menu">
            <div class="nav">

                <!--快速查询区域-->
                <div class="sb-sidenav-menu-heading">快速查询</div>
                <a class="nav-link" th:href="@{/member/toSelByCard}">
                    <div class="sb-nav-link-icon"><i class="fas fa-id-card"></i></div>
                    会员卡查询
                </a>

                <!--管理区域-->
                <div class="sb-sidenav-menu-heading">管理</div>
                <a class="nav-link" th:href="@{/member/selMember}">
                    <div class="sb-nav-link-icon"><i class="fas fa-user"></i></div>
                    会员管理
                </a>
                <a class="nav-link" th:href="@{/employee/selEmployee}">
                    <div class="sb-nav-link-icon"><i class="fas fa-user-tie"></i></div>
                    员工管理
                </a>
                <a class="nav-link" th:href="@{/equipment/selEquipment}">
                    <div class="sb-nav-link-icon"><i class="fas fa-table-tennis"></i></div>
                    器材管理
                </a>
                <a class="nav-link" th:href="@{/class/selClass}">
                    <div class="sb-nav-link-icon"><i class="fas fa-calendar-alt"></i></div>
                    课程管理
                </a>

            </div>
        </div>

        <div class="sb-sidenav-footer">
            <div class="small">你好！</div>
            管理员
        </div>
    </nav>
</div>

<!-- Main content -->
<div id="layoutSidenav_content">
    <main>
        <div class="container-fluid px-4">
            <h1 class="mt-4 text-white">管理员主页</h1>
            <ol class="breadcrumb mb-4">
                <li class="breadcrumb-item active text-white">主页</li>
            </ol>

            <!-- Dashboard Cards -->
            <div class="row">
                <div class="col-xl-3 col-md-6">
                    <div class="dashboard-card">
                        <h5 class="card-title">健身房总人数</h5>
                        <p class="card-text">19 人</p>
                    </div>
                </div>
                <div class="col-xl-3 col-md-6">
                    <div class="dashboard-card">
                        <h5 class="card-title">员工人数</h5>
                        <p class="card-text">6 人</p>
                    </div>
                </div>
                <div class="col-xl-3 col-md-6">
                    <div class="dashboard-card">
                        <h5 class="card-title">会员人数</h5>
                        <p class="card-text">13 人</p>
                    </div>
                </div>
                <div class="col-xl-3 col-md-6">
                    <div class="dashboard-card">
                        <h5 class="card-title">设备数量</h5>
                        <p class="card-text">7 件</p>
                    </div>
                </div>
            </div>

            <!-- Charts -->
            <div class="row">
                <div class="col-xl-6">
                    <div class="card mb-4 bg-dark text-white">
                        <div class="card-header">
                            <i class="fas fa-chart-area me-1"></i>
                            6月份出入人员折线图
                        </div>
                        <div class="card-body"><canvas id="myAreaChart" width="100%" height="40"></canvas></div>
                    </div>
                </div>
                <div class="col-xl-6">
                    <div class="card mb-4 bg-dark text-white">
                        <div class="card-header">
                            <i class="fas fa-chart-bar me-1"></i>
                            近几个月健身总人数柱状图
                        </div>
                        <div class="card-body"><canvas id="myBarChart" width="100%" height="40"></canvas></div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!--页脚-->
    <footer class="py-4 bg-dark mt-auto" th:fragment="common-footer">
        <div class="container-fluid px-4">
            <div class="d-flex align-items-center justify-content-between small">
                <div class="text-white">Copyright &copy; L&Z 2025</div>
            </div>
        </div>
    </footer>
</div>

<div th:fragment="common-scripts">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
            crossorigin="anonymous"></script>
    <script src="/static/js/scripts.js" th:src="@{/js/scripts.js}"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
    <script src="/assets/demo/chart-area.js" th:src="@{/assets/demo/chart-area.js}"></script>
    <script src="/assets/demo/chart-bar.js" th:src="@{/assets/demo/chart-bar.js}"></script>
    <script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest" crossorigin="anonymous"></script>
    <script src="/js/datatables-simple.js" th:src="@{/js/datatables-simple.js}"></script>
    <script src="/assets/demo/chart-pie.js" th:src="@{/assets/demo/chart-pie.js}"></script>
</div>

</body>
</html>